#!/usr/bin/env node

const Koa = require('koa');
const logger = require('koa-logger');
const authors = require('./routes/authors');
const parser = require('koa-bodyparser');
const app = new Koa();
app.listen(8080);

app.use(logger());
app.use(parser({enableTypes: ['json', 'form', 'text']}));
app.use(authors.routes());